package com.magnificent.atlantis.client.data.task.creator;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
 * User: Babanin
 * Date: 03.02.2009
 * Time: 14:47:43
 */
@XmlRootElement(name = "basicTask")
public class CreatorBasicTask extends AbstractCreatorTask {

    private boolean useProgress;
    private List<AbstractCreatorTask> subTasks;

    public CreatorBasicTask() {
        setName("Basic Task");
        setDescription("Basic Description");

        useProgress = true;
        subTasks = new ArrayList<AbstractCreatorTask>();
    }

    @XmlAttribute()
    public boolean isUseProgress() {
        return useProgress;
    }

    public void setUseProgress(boolean useProgress) {
        this.useProgress = useProgress;
    }

    @XmlElement()
    public List<AbstractCreatorTask> getSubTasks() {
        return subTasks;
    }

    public void setSubTasks(List<AbstractCreatorTask> subTasks) {
        this.subTasks = subTasks;
    }
}
